package com.linln.admin.system.validator;

import com.linln.modules.system.domain.Dept;


import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.io.Serializable;

/**
 * @author 小懒虫
 * @date 2018/8/14
 */

public class UserValid implements Serializable {
    private static final long serialVersionUID = 8174624944188735851L;
    @NotEmpty(message = "用户名不能为空")
    private String username;

    @NotEmpty(message = "用户昵称不能为空")
    @Size(min = 2, message = "用户昵称：请输入至少2个字符")
    private String nickname;

    private String confirm;

    @NotNull(message = "所在部门不能为空")
    private Long deptId;

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public String getConfirm() {
        return confirm;
    }

    public void setConfirm(String confirm) {
        this.confirm = confirm;
    }

    public Long getDeptId() {
        return deptId;
    }

    public void setDeptId(Long deptId) {
        this.deptId = deptId;
    }

    @Override
    public String toString() {
        return "UserValid{" +
                "username='" + username + '\'' +
                ", nickname='" + nickname + '\'' +
                ", confirm='" + confirm + '\'' +
                ", deptId=" + deptId +
                '}';
    }
}
